package com.xframework.security.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.xframework.annotation.MappingColumn;
import com.xframework.annotation.MappingTable;
import com.xframework.model.BaseModel;

import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
@MappingTable(tableName = "SECURITY_THIRD_ROLE")
public class ThirdRole extends BaseModel {
	@MappingColumn(columnName = "ROLE_ID", columnPk = true, columnLength = 32)
	private String roleId;

	@MappingTable(tableName = "SECURITY_ROLE")
	private Role role;

	@MappingColumn(columnName = "THIRD_ID", columnPk = true, columnLength = 32)
	private String thirdId;

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public String getThirdId() {
		return thirdId;
	}

	public void setThirdId(String thirdId) {
		this.thirdId = thirdId;
	}
}
